java remove space at the end of string

53

java 8 remove spaces from string -

a.replaceAll("\\s+","");

Comments

Submit
0 Comments